Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
git-semver-tags
Advanced tools
Get all git semver tags of your repository in reverse chronological order
The git-semver-tags npm package is a utility that retrieves all semantic version (semver) tags from a Git repository. It is useful for versioning and release management in software projects.
Retrieve Semver Tags
This feature allows you to retrieve all semantic version tags from the current Git repository. The code sample demonstrates how to use the git-semver-tags package to get the tags and log them to the console.
const gitSemverTags = require('git-semver-tags');
gitSemverTags((err, tags) => {
if (err) {
console.error(err);
} else {
console.log(tags);
}
});
The semver package is a comprehensive library for parsing, validating, and comparing semantic version numbers. While it does not directly interact with Git repositories to fetch tags, it provides extensive utilities for working with semver strings.
The git-tags package is a utility for listing all tags in a Git repository. Unlike git-semver-tags, it does not filter tags based on semantic versioning, but it can be used in conjunction with other tools to achieve similar functionality.
NodeGit is a library that provides native bindings to Git. It offers a wide range of Git functionalities, including listing tags. While more complex and feature-rich than git-semver-tags, it requires more setup and understanding of Git internals.
Get all git semver tags of your repository in reverse chronological order
Note: since lightweight tags do not store date information, the date of a tag is the date of the commit that is tagged on. If two tags on one commit, the order is not guaranteed.
$ npm install --save git-semver-tags
var gitSemverTags = require('git-semver-tags', [options]);
gitSemverTags(function(err, tags) {
console.log(tags);
//=> [ 'v2.0.0', 'v1.0.0' ]
});
$ npm install --global git-semver-tags
$ git-semver-tags
v2.0.0
v1.0.0
opts.lernaTags
: extract lerna style tags (foo-package@2.0.0
) from the
git history, rather than v1.0.0
format.opts.package
: what package should lerna style tags be listed for, e.g.,
foo-package
.opts.tagPrefix
: specify a prefix for the git tag to be ignored from the semver checksMIT © Steve Mao
FAQs
Get all git semver tags of your repository in reverse chronological order.
The npm package git-semver-tags receives a total of 2,828,949 weekly downloads. As such, git-semver-tags popularity was classified as popular.
We found that git-semver-tags demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.